package com.yxj01;

import java.util.HashMap;
import java.util.Map;

public class MapDemo01 {
    public static void main(String[] args) {
        //创建集合对象
        Map<String,String> map = new HashMap<String,String>();
        map.put("A0001","林青霞");
        map.put("A0002","张曼玉");
        map.put("A0003","王祖贤");
        map.put("A0003","柳岩");//当键第二次出现时，相当于修改第一次键的值
        System.out.println(map);
    }
}
